package com.relatev.minecraft.TRAttribute.event;

import com.relatev.minecraft.TRAttribute.TAttribute;
import org.bukkit.event.Cancellable;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class TAttributeLoadEvent extends Event implements Cancellable {

    private static final HandlerList handlers = new HandlerList();
    private boolean cancelled;
    private TAttribute Attribute;

    public TAttributeLoadEvent(TAttribute attr) {
        Attribute = attr;
    }

    public static HandlerList getHandlerList() {
        return handlers;
    }

    @Override
    public HandlerList getHandlers() {
        return handlers;
    }

    @Override
    public boolean isCancelled() {
        return cancelled;
    }

    @Override
    public void setCancelled(boolean bln) {
        cancelled = bln;
    }

    public TAttribute getAttribute() {
        return Attribute;
    }

    public void setAttribute(TAttribute attribute) {
        Attribute = attribute;
    }
}
